# !usr/bin/env python
# -*- coding:utf-8 _*-
"""
@Author:张广勤
@Web site: https://www.tunan.wang
@Github:www.github.com
 
@File:datetime01.py
@Time:2022/2/22 16:49

@Motto:不积跬步无以至千里，不积小流无以成江海！
"""
import datetime


print(datetime.date.today())
print(datetime.date.today().strftime("%Y%m%d"))
print(datetime.datetime.now())
print(datetime.datetime.now().strftime("%Y%m%d %H:%M"))
print(datetime.datetime.now().strftime("%Y%m%d %H:%M:%S"))

print(type(datetime.date.today()))
#str
print(type(datetime.date.today().strftime("%Y%m%d")))